<template>
  <input type="text" ref="inpRef" />
</template>

<script>
import { ref, onMounted } from 'vue'
export default {
  setup() {
    const inpRef = ref()
    onMounted(() => {
      inpRef.value.focus()
    })
    return {
      inpRef,
    }
  },
}
</script>

<style scoped></style>
